package proyecto.modelo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the genero database table.
 * 
 */
@Entity
@Table(name="genero")
public class Genero implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idGenero;

	private String descricion;

	//bi-directional many-to-many association to Pelicula
	@ManyToMany(mappedBy="generos")
	private Set<Pelicula> peliculas;

    public Genero() {
    }

	public int getIdGenero() {
		return this.idGenero;
	}

	public void setIdGenero(int idGenero) {
		this.idGenero = idGenero;
	}

	public String getDescricion() {
		return this.descricion;
	}

	public void setDescricion(String descricion) {
		this.descricion = descricion;
	}

	public Set<Pelicula> getPeliculas() {
		return this.peliculas;
	}

	public void setPeliculas(Set<Pelicula> peliculas) {
		this.peliculas = peliculas;
	}
	
}